package com.jy.admin.db.dao;

import com.fqgj.common.api.Page;
import com.fqgj.common.base.BaseMapper;
import com.jy.admin.db.entity.CeAgentAccountEntity;
import com.jy.admin.enums.WhiteListBean;

import java.util.List;

/**
 * User: anonymous
 * Date: 2022-01-03
 * Time: 18:14:20.066
 */

public interface CeAgentAccountDao extends BaseMapper<CeAgentAccountEntity> {

    List<CeAgentAccountEntity> queryAll();

    CeAgentAccountEntity queryAccount(String account, String merchantCode);

    CeAgentAccountEntity getByAgentCode(String agentCode);

    List<CeAgentAccountEntity> getAccountsByStatus(Integer status);

    List<CeAgentAccountEntity> getAccountsMerchantCode(String merchantCode);

    List<CeAgentAccountEntity> queryAccountAll(Page page);

    List<CeAgentAccountEntity> queryAccountByMerchant(Page page,String merchantCode);

    List<CeAgentAccountEntity> selectNoLoginList(String merchantCode);

    Integer selectAllCount();
    List<Integer> getRepeatWhiteList();
    List<WhiteListBean> getWhiteList(String merchantCode,String overdueDays);

    Integer selectCountByMerchant(String merchantCode);

}